package com.wzw.springboot.principle.spel;

import org.springframework.stereotype.Component;

/**
 * @author Wangzhiwen
 */
@Component("pm")
public class PermissionManager {

    public boolean check(String role) {
        return "admin".equals(role);
    }

}
